package routers

import (
	"getshop/controllers"
	"getshop/controllers/admin"
	"github.com/astaxie/beego"
)

// @APIVersion 1.0.0
// @Title GetShop API
// @Description GetShop 接口文档
func init() {
	beego.Router("/", &controllers.MainController{})
	ns := beego.NewNamespace("/api",
		beego.NSNamespace("/admin/admin",
			beego.NSInclude(
				&admin.Admin{},
			),
		),
		beego.NSNamespace("/admin/auth",
			beego.NSInclude(
				&admin.Auth{},
			),
		),
	)
	beego.AddNamespace(ns)
}
